package designPatterns.P11_代理模式_Proxy.P03_cglib_runoob;

import net.sf.cglib.proxy.CallbackFilter;

import java.lang.reflect.Method;

public class TargetMethodCallbackFilter implements CallbackFilter {
    @Override
    public int accept(Method method) {
        switch (method.getName()) {
            case "method1":
                return 0;
            case "method2":
                return 1;
            case "method3":
                return 2;
            default:
                return 0;
        }
    }
}
